<?php


namespace App\Models;


class Series extends Model
{
    protected $table = 'series';

    public function courses()
    {
        return $this->hasMany(Course::class);
    }


    public function getName()
    {
        return $this->name;
    }

    public function setPublished($isPublished)
    {
        $this->is_published = $isPublished;
    }

    public function getPublished()
    {
        return $this->is_published;
    }
}